package cn.torna.tornaexample.controller.eg.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Description 商品搜索请求
 */
@Data
public class GoodsSearchReqDTO implements Serializable {

    private static final long serialVersionUID = -5401363894660120668L;

    @Schema(description = "会员ID", required = true, example = "123")
    public Long memberId;


    @Schema(description = "搜索词", example = "1")
    public String keyword = "";

    @Schema(description = "会员等级", required = true, example = "1")
    public Integer memberLevel;

    @Schema(description = "fffff", required = true, example = "true")
    public Boolean tradesFlag;

    @Schema(description = "dddddd", example = "[1,2]")
    public List<Integer> shopTradesAttrs;

    @Schema(description = "ddddd", example = "dddddd")
    public String memberLogin;

    @Schema(description = "ccccccc", required = true, example = "true")
    public Boolean manualSort;

    @NotNull(message = "页码不能为空")
    @Schema(description = "分页 页码", required = true, example = "1")
    public Integer page;

    @NotNull(message = "条数不能为空")
    @Schema(description = "分页 条数", required = true, example = "10")
    public Integer size;

    @Schema(description = "区域id", required = true, example = "1")
    public String areaId;

    @Schema(description = "cccccc", example = "[1,2]")
    public List<Long> goodsGroupList;

//    @Schema(description = "商品编码及shopId列表 不为空时")
//    public List<ItemShopDTO> itemCodeShopIdList;

    @Schema(description = "ccccccc", example = "1")
    private String searchSceneType;

}
